package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppLogininfoMapper;
import com.ruoyi.system.domain.AppLogininfo;
import com.ruoyi.system.service.IAppLogininfoService;

/**
 * app登录记录Service业务层处理
 * 
 * @author zw
 * @date 2022-03-28
 */
@Service
public class AppLogininfoServiceImpl implements IAppLogininfoService 
{
    @Autowired
    private AppLogininfoMapper appLogininfoMapper;

    /**
     * 查询app登录记录
     * 
     * @param id app登录记录ID
     * @return app登录记录
     */
    @Override
    public AppLogininfo selectAppLogininfoById(Long id)
    {
        return appLogininfoMapper.selectAppLogininfoById(id);
    }

    /**
     * 查询app登录记录列表
     * 
     * @param appLogininfo app登录记录
     * @return app登录记录
     */
    @Override
    public List<AppLogininfo> selectAppLogininfoList(AppLogininfo appLogininfo)
    {
        return appLogininfoMapper.selectAppLogininfoList(appLogininfo);
    }

    /**
     * 新增app登录记录
     * 
     * @param appLogininfo app登录记录
     * @return 结果
     */
    @Override
    public int insertAppLogininfo(AppLogininfo appLogininfo)
    {
        return appLogininfoMapper.insertAppLogininfo(appLogininfo);
    }

    /**
     * 修改app登录记录
     * 
     * @param appLogininfo app登录记录
     * @return 结果
     */
    @Override
    public int updateAppLogininfo(AppLogininfo appLogininfo)
    {
        return appLogininfoMapper.updateAppLogininfo(appLogininfo);
    }

    /**
     * 批量删除app登录记录
     * 
     * @param ids 需要删除的app登录记录ID
     * @return 结果
     */
    @Override
    public int deleteAppLogininfoByIds(Long[] ids)
    {
        return appLogininfoMapper.deleteAppLogininfoByIds(ids);
    }

    /**
     * 删除app登录记录信息
     * 
     * @param id app登录记录ID
     * @return 结果
     */
    @Override
    public int deleteAppLogininfoById(Long id)
    {
        return appLogininfoMapper.deleteAppLogininfoById(id);
    }
}
